package com.oyjd.ybx.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 资讯信息实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_INFORMATION")
public class Information implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 2418242001507283752L;

	/**
	 * 资讯ID
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "MSG_ID", length = 32)
	private String msgId;

	/**
	 * 分类ID
	 */
	@Column(name = "CLASS_ID", length = 32)
	private String classId;

	/**
	 * 资讯标题
	 */
	@Column(name = "MSG_TITLE", length = 50)
	private String msgTitle;

	/**
	 * 资讯内容
	 */
	@Column(name = "MSG_CONTENT", length = 5000)
	private String msgContent;

	/**
	 * 对应的图片
	 */
	@Column(name = "MSG_PIC", length = 100)
	private String msgPic;

	/**
	 * 浏览数
	 */
	@Column(name = "COUNT_LOOK")
	private int countLook;

	/**
	 * 创建者：来至用户表账号
	 */
	@Column(name = "CREATOR", length = 32)
	private String creator;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
	 * 排序码
	 */
	@Column(name = "ORDER_KEY")
	private long orderKey;

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getMsgTitle() {
		return msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public String getMsgPic() {
		return msgPic;
	}

	public void setMsgPic(String msgPic) {
		this.msgPic = msgPic;
	}

	public int getCountLook() {
		return countLook;
	}

	public void setCountLook(int countLook) {
		this.countLook = countLook;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public long getOrderKey() {
		return orderKey;
	}

	public void setOrderKey(long orderKey) {
		this.orderKey = orderKey;
	}

}